﻿using Sumc.Client.ModernUI.Common;
using Sumc.Models.Responses;
using System;
using System.Threading.Tasks;

namespace Sumc.Client.ModernUI.Services
{
    public sealed class VirtualTableRepository : BaseRepository, IVirtualTableRepository
    {
        public async Task<VirtualTable> GetStopVirtualTable(string stop)
        {
            this.expireTime = new TimeSpan(0, 7, 0);
            var url = string.Format("{0}VirtualTables?query={1}", Constants.BaseSumcApiUrl, stop);
            var virtualTable = await this.Get<VirtualTable>(url);
            return virtualTable;
        }
    }
}
